Hydrogel treatment